<?php
$this->title = "我的收藏";
?>
<?php
use common\WuMing;
use yii\widgets\LinkPager;

?>
<div class="main mb20">

    <!-- Nav tabs -->
    <div role="tabpanel" style="position:relative;">

        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation"><a href="<?= Yii::$app->urlManager->createUrl('member/info') ?>">个人资料</a></li>
            <li role="presentation"><a href="<?= Yii::$app->urlManager->createUrl('member/index') ?>">我的揭示版</a></li>
            <li role="presentation"><a href="<?= Yii::$app->urlManager->createUrl('member/collect') ?>">收藏</a></li>
            <li role="presentation"><a href="<?= Yii::$app->urlManager->createUrl('member/comment') ?>">评论</a></li>            
            <li role="presentation"><a href="<?= Yii::$app->urlManager->createUrl('member/post') ?>">我发表的</a></li>
            <li role="presentation" class="active"><a href="<?= Yii::$app->urlManager->createUrl('member/message') ?>">消息</a></li>
        </ul>


        <!-- Tab panes -->
        <div class="tab-content pd20">

            <div role="tabpanel" class="tab-pane active" id="two">
                <ul class="list-unstyled">
                    <?php foreach($model as $v):?>
                        <li class="sidebar_list wmhot">
                            <p>
                                <?php if($v['msgstatus'] == 0):?>
                                    <span style="color: red">[未读]</span>
                                    <?php else:?>
                                    <span style="color: blue">[已读]</span>
                                <?php endif?>
                                <a <?php if($v['msgstatus'] == 0):?> data-id="<?=$v['id']?>" class="mymsg"<?php endif?> href="<?=Yii::$app->urlManager->createUrl(['post/view','id'=>$v['post_id']])?>#comment<?=$v['id']?>"><span style="color: #000088"><?=WuMing::getCateNameByPostId($v['post']['id'])?>>><?=$v['post']['title']?></span>>><?=strip_tags($v['content'])?></a>
                            </p>
                        </li>
                    <?php endforeach?>
                </ul>
                <hr/>
                <?=LinkPager::widget([
                    'pagination' => $pages,
                ]);?>
            </div>


        </div>

    </div>
    <!-- Nav tabs -->
</div>


